package com.xxiongb.business.repository.entity;

import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;

//考虑多个用户操作，自己操作自己数据，互相喜欢两条数据表示，互相不影响
@Document(collection="heartbeat_request")
public class HeartbeatRequest {
	private String id;
	private String fromUserID;
	private String toUserID;
	
	private SimpleUser toUser;

	private Date heartbeatDate;

	public String getFromUserID() {
		return fromUserID;
	}

	public void setFromUserID(String fromUserID) {
		this.fromUserID = fromUserID;
	}

	public String getToUserID() {
		return toUserID;
	}

	public void setToUserID(String toUserID) {
		this.toUserID = toUserID;
	}

	public SimpleUser getToUser() {
		return toUser;
	}

	public void setToUser(SimpleUser toUser) {
		this.toUser = toUser;
	}

	public Date getHeartbeatDate() {
		return heartbeatDate;
	}

	public void setHeartbeatDate(Date heartbeatDate) {
		this.heartbeatDate = heartbeatDate;
	}

	public String getId() {
		return id;
	}
	
}
